#ifndef _WS2812_H
#define _WS2812_H

#include "stdint.h"
 
#define ONE_PULSE        (15)                           
#define ZERO_PULSE       (5)                           
#define RESET_PULSE      (48)                           
#define LED_NUMS         (7)                            
#define LED_DATA_LEN     (24)                           
#define WS2812_DATA_LEN  (LED_NUMS*LED_DATA_LEN)        
#define DMA_LEN  (LED_NUMS*LED_DATA_LEN+RESET_PULSE)

void WS2812SetColor(uint8_t R, uint8_t G, uint8_t B, uint16_t num);
void WS2812Reset(void);
void WS2812SignalSend(void);

#endif

